import os

def kill_services():
    kills = [
        'sudo pkill -SIGKILL -f "/home/debian/rcs/software/radius_control_software_dma_server"',
        'sudo pkill -SIGKILL -f "/home/debian/rcs/software/radius_control_backend/services/ad936x/run.py"',
        'sudo pkill -SIGKILL -f "/home/debian/rcs/software/radius_control_backend/services/attenuators/run.py"',
        'sudo pkill -SIGKILL -f "/home/debian/rcs/software/radius_control_backend/services/automatic_control/run.py"',
        'sudo pkill -SIGKILL -f "/home/debian/rcs/software/radius_control_backend/services/control/run.py"',
        'sudo pkill -SIGKILL -f "/home/debian/rcs/software/radius_control_backend/services/dsp/run.py"',
        'sudo pkill -SIGKILL -f "/home/debian/rcs/software/radius_control_frontend/main.py"',
        'sudo pkill -SIGKILL -f "/home/debian/rcs/software/radius_control_backend/services/killer/run.py"',
        'sudo pkill -SIGKILL -f "/home/debian/rcs/software/radius_control_backend/main.py"',
        'sudo pkill -SIGKILL -f "/home/debian/rcs/software/radius_control_backend/services/ocb/run.py"',
        'sudo pkill -SIGKILL -f "/home/debian/rcs/software/radius_control_backend/services/relays_module/run.py"',
        'sudo pkill -SIGKILL -f "/home/debian/rcs/software/radius_control_backend/services/services_module/run.py"',
        'sudo pkill -SIGKILL -f "/home/debian/rcs/software/radius_control_backend/services/telemetry/run.py"',
        'sudo pkill -SIGKILL -f "/home/debian/rcs/software/radius_control_backend/services/server_integration/run.py"'
    ]
    for cmd in kills:
        os.system(cmd)


kill_services()
